package com.lt.mall.controller;

import com.lt.mall.response.Result;
import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author Liu_Tao
 */
@RestController
@Log4j2
public class UserController {

    @PostMapping("user/login")
    public Result userLogin(@RequestBody Map<String, Object> map){
        log.info("收到登录请求: 用户名:{} 密码:{}", map.get("username"), map.get("password"));
        return new Result(200, "success");
    }
}
